import { post } from '../config/fetch'
import { clientId } from '../config/env'
// 获取用户可访问机构列表
export const getAccessibleOrganization = params => post('/fabric-erp/basic/permission/accessibleOrganization', params)

// 登录接口
export const apiUserLogin = params => post(`/fabric-erp/basic/permission/login`, { ...params, clientId })

// 登录获取验证码
export const apiUserGetCode = params => post(`/rzbase/sys/user/smsSignOnGrant`, params)

// 验证码登陆
export const apiUserCodeLogin = params => post(`/rzbase/sys/user/smsLogin`, params)
